<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>reactlesson2</title>

    <script src="../build/react.development.js"></script>
    <script src="../build/react-dom.development.js"></script>
    <script src="../build/babel.min.js"></script>
    <!--<script src="https://cdn.bootcss.com/react/15.4.2/react.min.js"></script>
    <script src="https://cdn.bootcss.com/react/15.4.2/react-dom.min.js"></script>
    <script src="https://cdn.bootcss.com/babel-standalone/6.22.1/babel.min.js"></script>-->
</head>
<body>
    <div id="example"></div>

    <script type="text/babel">
        var names = ['Alicy','Emily','Kate'];
        ReactDOM.render(
            <div>
                {
                    names.map(function(name,key){
                        return <div key={key}>hello {name}!</div>;
                    })
                }
            </div>,
            document.getElementById("example")
        );
    </script>
</body>
</html>